package com.cq.hd.common.enums.biz;

import lombok.Getter;

public enum WithdrawalCheckTypeEnum {

    MERCHANT_AMT(1, "本金提现服务"),
    MERCHANT_SUBSIDY(2, "补贴提现服务");

    @Getter
    private final int value;
    @Getter
    private final String text;

    WithdrawalCheckTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public static WithdrawalCheckTypeEnum valueOfWithdrawalType(int withdrawalType) {
        switch (withdrawalType) {
            case 1:
                return MERCHANT_AMT;
            case 3:
                return MERCHANT_SUBSIDY;
            default:
                throw new IllegalArgumentException("提现类型转换错误");
        }
    }

}
